package cn.edu.cuit.elena.web.tool;

import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;

public class ToLongUDF
    extends UDF
{
    public LongWritable evaluate( Text str )
    {
        return new LongWritable( Long.parseLong( str.toString().trim() ) );
    }
}
